package com.lris.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @Package: com.lris.pojo
 * @Author lris
 * @CreateDate 2023-09-10 01:55:40
 * @describe 实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@Schema( name = "登录用户响应")
public class UserVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Schema(description="用户id" ,example = "1231561231651")
    private Long id;



    /**
     * 用户名
     */
    @Schema(description="用户名",example = "zhasdhas")
    private String username;


    /**
     * 昵称
     */
    @Schema(description="用户昵称",example = "孙悟空")
    private String nickname;

    /**
     * 手机号
     */
    @Schema(description="用户手机号",example = "188888888888")
    private String phone;

    /**
     * 性别
     */
    @Schema(description="用户性别",example = "男")
    private Integer gender;

    /**
     * 身份
     */
    @Schema(description="用户身份权限码",example = "[home]")
    private String role;


    /**
     * 访问令牌
     */
    @Schema(description="用户访问令牌",example = "c3955b5d-2859-40ea-8223-83267297bfa1")
    private String token;

    @Schema(description="用户头像",example = "c3955b5d-2859-40ea-8223-83267297bfa1")
    private String headImg;

    @Schema(description="用户创建时间",example = "c3955b5d-2859-40ea-8223-83267297bfa1")
    private LocalDateTime createTime;


}